{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=70
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,n,p,k:longint;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
for i:=1 to n do begin
	if odd(i) then read(p) else begin
		read(k);
		write(k,' ',p,' ');
	end;
end;
if odd(n) then write(p);
end.